package com.ymatou.iapi.accounting.service;

import org.json.JSONObject;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*锁定解锁账户接口Call
*FreeMaker Template自动生成代码
*/
public class SetAccountLockStatusCall extends YmatouBaseCall{
	private static String opurl ="api/Account/SetAccountLockStatus";
	
	public SetAccountLockStatusCall() {
		super(EnvSetup.getSystemUrl("accounting_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	//获取 Status
		public String getStatus() {
			String status = null;
			try {
				status = new JSONObject(getReturnData()).getString("StatusCode");
			} catch (Exception e) {
				e.printStackTrace();
			}
			return status;
		}
		
		//获取 Msg
		public String getMsg() {
			String message = null;
			try {
				message = new JSONObject(getReturnData()).getString("Message");
			} catch (Exception e) {
				e.printStackTrace();
			}
			return message;
		}
	
}